OPC Studio User's Guide and Reference
UAApplicationElement Constructor(String,String,IEnumerable<String>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UAApplicationElement Class > UAApplicationElement Constructor : UAApplicationElement Constructor(String,String,IEnumerable<String>)
The name of the Server (specified in the mDNS announcement).

The value of this parameter cannot be null (Nothing in Visual Basic).

The URL of the discovery Endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

The Server capabilities supported by the Server.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the class, specifying server name, discovery URI string, and server capabilities.
Syntax
'Declaration
 
Public Function New( _
   ByVal serverName As String, _
   ByVal discoveryUrlString As String, _
   ByVal serverCapabilities As IEnumerable(Of String) _
)
'Usage
 
Dim serverName As String
Dim discoveryUrlString As String
Dim serverCapabilities As IEnumerable(Of String)
 
Dim instance As New UAApplicationElement(serverName, discoveryUrlString, serverCapabilities)

Parameters

serverName
The name of the Server (specified in the mDNS announcement).

The value of this parameter cannot be null (Nothing in Visual Basic).

discoveryUrlString
The URL of the discovery Endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

serverCapabilities
The Server capabilities supported by the Server.

The value of this parameter cannot be null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also